package com.gwt.theOne.theLocal.server;

import java.util.Date;

import com.google.appengine.api.datastore.Key; 

import javax.jdo.annotations.IdGeneratorStrategy; 
import javax.jdo.annotations.PersistenceCapable; 
import javax.jdo.annotations.Persistent; 
import javax.jdo.annotations.PrimaryKey; 

@PersistenceCapable  
public class UserComment { 
	@PrimaryKey  
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) 
	private Key key; 

	@Persistent 
	private String locName; 
	@Persistent
	private String userName;
	@Persistent
	private String email;
	@Persistent
	private String commentHtmlStr; 
	@Persistent
	private Date date;

	public UserComment(String locName, String userName, String email,
			String commentHtmlStr, Date date) {
		super();
		this.locName = locName;
		this.userName = userName;
		this.email = email;
		this.commentHtmlStr = commentHtmlStr;
		this.date = date;
	}

	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	// getter methods 
	public Key getKey() { 
		return this.key; 
	}

	public String getLocName() {
		return locName;
	}

	public void setLocName(String locName) {
		this.locName = locName;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getCommentHtmlStr() {
		return commentHtmlStr;
	}

	public void setCommentHtmlStr(String commentHtmlStr) {
		this.commentHtmlStr = commentHtmlStr;
	} 
}; 



